package com.veng.springbootdemo.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/userInfo")
public class UserInfoController {

    @RequestMapping("userList")
    @RequiresPermissions("userInfo:view")
    @ResponseBody
    public String userInfo(){
        return "userInfo";
    }
}
